-- GENERATED SPELL FOR [Dustbelcher Lord] --


function spell0_2719(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_2719', 522, 1)
end

function spell1_2719(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_2719', 30274, 1)
end

function Sorts_2719(pUnit, Event)
local choix_sorts_2719 = math.random(0, 1)
if choix_sorts_2719 == 0 then
pUnit:RegisterEvent('spell0_2719', 1, 1)
end
if choix_sorts_2719 == 1 then
pUnit:RegisterEvent('spell1_2719', 1, 1)
end
end

function mob2719_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2719', math.random(1500, 3000), 1)
end

function mob2719_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2719_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2719_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2719, 1, 'mob2719_Action')
RegisterUnitEvent(2719, 2, 'mob2719_Leave')
RegisterUnitEvent(2719, 3, 'mob2719_Kill')
RegisterUnitEvent(2719, 4, 'mob2719_Die')
